$OpenBSD: patch-Makefile,v 1.1.1.1 2015/01/08 15:08:53 sthen Exp $
--- Makefile.orig	Sat Jun 16 11:33:32 2012
+++ Makefile	Thu Jan  8 14:11:34 2015
@@ -18,7 +18,9 @@ LDLIBS := $(PCSC_LDLIBS)
 
 BIN = pcsc_scan
 BIN_SCRIPT = ATR_analysis gscriptor scriptor
-MAN = pcsc_scan.1.gz gscriptor.1p.gz scriptor.1p.gz ATR_analysis.1p.gz
+MAN1 = pcsc_scan.1
+MAN1P = gscriptor.1p scriptor.1p ATR_analysis.1p
+MAN = $(MAN1) $(MAN1P)
 
 all: $(BIN) $(MAN)
 
@@ -33,8 +35,9 @@ install: all
 	install -d $(DESTDIR)/share/pcsc
 	install -m 644 smartcard_list.txt $(DESTDIR)/share/pcsc
 
-	install -d $(DESTDIR)/share/man/man1/
-	install -m 644 $(MAN) $(DESTDIR)/share/man/man1/
+	install -d $(DESTDIR)/man/man1/ $(DESTDIR)/man/man1p/
+	install -m 644 $(MAN1) $(DESTDIR)/man/man1/
+	install -m 644 $(MAN1P) $(DESTDIR)/man/man1p/
 
 clean:
 	rm -f pcsc_scan.o $(BIN) $(MAN)
